const express = require("express");
const path = require("path");
const app = express();
const PORT = 8000;
const HOST = "0.0.0.0";

// 使用 express.static 发送静态文件 ; 如果你path 不是/web2记得要改啊！
app.use('/web2/excalidraw',express.static(path.join(__dirname, "excalidraw")));


// 响应请求 
app.get('/web2/about', (req, res) => {
    res.send({ 'data': 'Hello FunctionGraph' });
    console.log(req.url);
})

const server = app.listen(PORT, HOST);

